import request from '@/utils/request'
import {appConfig} from '../../config/app'

let service = appConfig.microServModules.mall + 'api/review'

// 商品评价
export function getGoodsReviewPage (data) {
  return request(`${service}/getGoodsReviewPage`, {
    method: 'post', data: data
  })
}

// 商品评价数据
export function reviewCount (data,id) {
  return request(`${service}/reviewCount?goodsId=${id}`, {
    method: 'get', data: data
  })
}

// 供应商数据
export function getSupplierStore (data) {
  return request(`${service}/getSupplierStore`, {
    method: 'get', data: data
  })
}
